﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<SistemaDeBastanteodePoderes.Dominio.Poder>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>LISTA DE PODERES</h2>

    <table>
        <tr>
            <th></th>
            <th>Codigo</th>
            <th>CodCorto</th>
            <th>NomPoder</th>
            <th>Servicio</th>
        </tr>

    <% foreach (var item in Model) { %>
        <tr>
            <td>
<%--                <%: Html.ActionLink("Editar", "Edit", new { id = item.Codigo })%> |
                <%: Html.ActionLink("Ver", "Details", new { id = item.Codigo })%> |
                <%: Html.ActionLink("Eliminar", "Delete", new { id = item.Codigo })%>--%>
            </td>
            <td><%: item.Codigo %></td>
            <td><%: item.CodCorto %></td>
            <td><%: item.NomPoder %></td>
            <td><%: item.Servicio.Servicio %></td>
        </tr>
    
    <% } %>

    </table>
    <p><%: Html.ActionLink("Crear", "Create") %></p>

</asp:Content>

